<div id="order-pay-dialog" class="order-pay-dialog-c" style="width:580px;">
	<h3><span id="order-pay-dialog-close" class="close" onclick="return X.boxClose();">Fechar</span>Detalhes da Oferta</h3>
	<div style="overflow-x:hidden;padding:10px;">
	<table width="96%" align="center" class="coupons-table">
		<tr><td width="80"><b>Titulo:</b></td><td><b><?php echo $team['title']; ?></b></td></tr>
		<tr><td><b>Validade:</b></td><td>inicio:<b><?php echo date('d-m-Y',$team['begin_time']); ?></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ate :<b><?php echo date('d-m-Y',$team['end_time']); ?></b></td></tr>

		<tr><td><b>Status:</b></td><td><span style="color:#F00;font-weight:bold;"><?php echo state_explain($team); ?></span><?php if($team['close_time']&&$team['now_number']>=$team['min_number']&&$team['delivery']!='express'){?>&nbsp;&nbsp;<span style="color:#F8C;font-weight:bold;"><?php if(($team['teamcoupon'])){?>&lt;<?php echo $INI['system']['couponname']; ?> Não finalizado&gt;<?php } else { ?>&lt;<?php echo $INI['system']['couponname']; ?> Foi emitido&gt;<?php }?></span><?php }?></td></tr>
		<tr><td><b>Quantidade:</b></td><td>Minimo: <?php echo $team['min_number']; ?>&nbsp;&nbsp;&nbsp;&nbsp;Maximo: <?php echo $team['max_number']==0?'Sem Limite':$team['max_number']; ?></td></tr>
		<tr><td><b>Preço:</b></td><td>Preço de mercado: R$ <b><?php echo moneyit3($team['market_price']); ?></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Preço do item: R$ <b><?php echo moneyit3($team['team_price']); ?></b>&nbsp;</td></tr>
		<tr><th colspan="2"><hr/></th></td>
		<tr><td><b>Situação:</b></td><td><b><?php echo $team['now_number']; ?></b>&nbsp;Total&nbsp;<b><?php echo $paycount; ?></b>&nbsp;Pessoas compraram&nbsp;<b><?php echo $buycount; ?></b>&nbsp;vezes comprada
		</td></tr>
		<tr><td><b>Pagamento:</b></td><td>Pagamentos online: R$ <b><?php echo moneyit3($onlinepay); ?></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saldo de pagamentos: R$ <b><?php echo moneyit3($creditpay); ?></b></td></tr>
		<tr><td><b>Saldo:</b></td><td>Total de pagamentos: R$ <b><?php echo moneyit3($onlinepay+$creditpay); ?></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Aprovados: R$ <b><?php echo moneyit3($cardpay); ?></b></td></tr>
	<?php if($team['needline']){?>
		<tr><th colspan="2"><hr/></th></td>
		<tr><td colspan="2">
			<button style="padding:0;" id="dialog_subscribe_button_id" onclick="if(confirm('Envio de e-mails em processo, por favor seja paciente, aceita realizar?')){this.disabled=true;return X.misc.noticenext(<?php echo $team['id']; ?>,0);}">&nbsp; Enviar Oferta &nbsp;(<span id="dialog_subscribe_count_id">0</span>/<?php echo $subcount; ?>)</button>&nbsp;
			<?php if($team['noticesms']){?><button id="dialog_sms_button_id" onclick="if(confirm('Processo de envio de mensagens de texto, seja paciente, aceita realizar?')){this.disabled=true;return X.misc.noticesms(<?php echo $team['id']; ?>,0);}">Text messages sent in coupons&nbsp;(<span id="dialog_sms_count_id">0</span>/<?php echo $couponcount; ?>)</button>&nbsp;<?php }?>
			<?php if($team['teamcoupon']){?><button onclick="this.disabled=true;return X.manage.teamcoupon(<?php echo $team['id']; ?>);">Enviar o código do cupom automaticamente&nbsp;(<?php echo $couponcount; ?>/<?php echo $buycount; ?>)</button>&nbsp;<?php }?>
		</td></tr>
	<?php }?>
	</table>
	</div>
</div>
